added function for user uploaded images