Hide crop and delete buttons when necessary