Fix api endpoints && image transformations