removed debug message
fixed bug where layer manipulation would fail on loaded images