Twitter image-cropping algorithm