so some early hadiths banned images of prophets of islam so where those hadiths were considered ligitimate such actions would be banned.
also this question is identical to a second question being asked now so i suggest you look at that post since it is more active