checked condition for image path

checked condition based on asset pipeline enabled or not for image path generation.