Added sprite based image resizing

fix #4