It is not prohibited. It says if you can imagine god in your mind, worship it. But if imagination becomes difficult for you, make an idol worship it and later you will reach the stage of idolless "Nirakar" worship. Hindu religion provides flexibility to you without enforcing things unnecessarily.