new test for image formatValue, fix bugs found