remove img directory from image path