adds image upload on filesystem and refines queries