Restricted images only for logged user. (hidden url)

Been done before
You should take some time to research your issue here and be sure to read the site help topics especially How do I ask a good question?

We’d love to help you. To improve your chances of getting an answer, here are some tips:

https://wordpress.stackexchange.com/help/how-to-ask

Find Answer Here

How to Protect Uploads, if User is not Logged In?

More explanation here
http://0to5.com/protecting-wordpress-media-uploads-unless-user-is-logged-in/