Implemented build_thumbnail, create_thumbnail is now deprecated. Added size transformation flags for fitting the longest or the shortest side of the original image within the thumbnail canvas