modifications on image toggle