image as parameter in endpoints