Fix for delete button on permissions and landscape thumbnails

Moved display override to css file
Added float cast to get rid of devide by zero error for landscape pictures