small php to convert string to image