refactoring responsive css for img