hopefully fixed image viewing bugs