JPEG button on single image page functional
Fixed errors with try/catch in imagepage.js