fixing wonky input for png export