added pointer_from_chars for image construction