Generate iamge thumbnails containable to given box size