classify uploaded images by structure type