Fixes layout on image viewer