Fixed bug with crashing when attempting to view pictures