Use long units 'MILLISECOND' etc in gatewaytest/test_image.py