modified path of image output to public/images