integrating resource manager into the image