changed the image directory from img to gallery