Classes starred and unstarred get assigned accordingly to the action performed on the image