An imaging study of the globular cluster systems of NGC 1407 and 1400