Implemented double buffering scheme during image tranfer.