added editor function
functionallity not working in buttons yet, but can draw and ugly stretfched version of the image