Fix error creating server with invalid image