only add suffix to jpg&png format, #320