formatting, converting to image