backend fixes for img urls