[PATCH v2 26/35] common: Move the image globals into image.h