Add UIImage creation code.