Data transformation to extract images from files like PDFs