added image coordinate spec and associated helpers
added image factory spec, corrected bug in creating image from buffered image