building empty matrix in UI, cleaned up leaks in UIImage