fixed img toggle bug