Updating image css to class