Moved getimage into seperate package