Simple image editor implementation in flex