Move extension check into Image::create. It should throw if errors are found.