make a div with class="imageholder" and inside it put an img control.
I don't see how you code is resizing image? It's just cropping an image.
agreed, that's not resizing
@dpashkevich I changed the title.
@musyo people just call it crop :)