resized thumbnails following aspect fit rule using a custom UIImage category close #4