default to png format if none provided