change class of image