Implementing BaseImageToHardware and CleanupServer functions.