Some layout for resizing images in media db.