Simple & hassle-free image resize & crop based on a pseudo-viewport