Then there is no way to prevent the Image opening if you type in the Full Address of it in a Web Browser.
The thing here is that others viewing the Web Page will never see the Sub Folders of Files & Images or anything else that you hide in that Web Site so they will not know that it is there and if you don't post directions to reach these files/folders they will not be able to access them directly.
By typing in the full address of a File/of any type the Web Browser takes you to that address.
However there are other ways of setting up Web Hosting Services and making certain parts of the Entire Web Site Private. That however is down to the Hosting Software not the Web Page itself. ;)
I'm no expert in Web Design though and maybe some others here at TR who specialize in this work can give you pointers in other way of doing things.
Col