memory allocation on gpu for input image added