Fixed bug with hiding removed image in media.js