You can probally do anything you wish as long as you alter the code to do it.
However viewing a photo in our program simply increased the views count. it does not track who when viewed.
Limiting downloading doesnt have anything to do with viewing. You can restrict right click as well as enabling the image protection option of storing images below the web root to restrict access to downloading all in admin options. However any true web guru knows if you view a site you already have all its images if you have access to view them simply because they are in your browser cache