Added margin to ImageViewer (#335)