Content-based Image Resizing on Mobile Devices