Creating a suitably sized PNG for embedding