Revise it to open an image correctly