Fix .png extension in class name

Fix .png extension in class name on drop
Fixes

- canvas clear
- file name in code area is now set from the index page
- error in setMessage
- error in space.coffee when the image can not be placed in canvas
because is it too big