update a sample handling png format