retrieve image from mongodb