issue opening image through python

solved this

Little moderation note: Rather than edit away the content of your post, it would be preferable if you would keep your original question and then include a reply that details the solution you came up with. This forum is used and searched by a lot of Blender users, and others are likely to have the same question/issue you did. By posting your solution, it’s much more helpful to the community.