buffer image for safety.