The whole process works now! Opening file, editing and saving to JPEG.