refactor styles for image