Text this: Image Preprocessing Framework for Time-domain Astronomy in the Artificial Intelligence Era