Dissecting the Flickr image resizing algorithm