restrict image viewing