How to convert pixels values to image and align that image to the center of the drawings bounding box.