Fixes image viewer rotation zoom