deal with image sizes, mapid is url param