Refactored server_image to reduce memory allocation overhead.