change image__mediadata height and width columns to medium_height and medium_width and add thumb_height and thumb_width cols
store thumb and medium metadata and only resize if necessary