change memory allocation for image processor