attach/unattach image to environment is working