CreateImage now working correctly in AnyEvent framework; RegisterImage needs same treatment