changed nsimage to uiimage for ios