Walaykumusalam warahmatullahi wabarakatuh
Statues, paintings, and drawings of creatures that possess a spirit, namely humans and animals, is strictly prohibited and considered an enormity.
This prohibition also extends to images of things that do not exist in real life, like the winged horse in the hadith of our mother Aisha (may Allah be pleased with her).
The exception to this prohibition is girls dolls, and according to the well-known shafiʿi jurist, al-Bujayrami, boys toys are also permitted. Additionally, if the image is missing something without which it cannot survive like the head or the entire lower body, it is permissible. Also, whether or not the drawing consists of vital internal organs like the heart, is not a consideration.
As for photographs, there is disagreement amongst contemporary Shafiʿi scholars regarding their permissibility. The jurists of Tarim and Hadhramaut are overwhelmingly of the opinion that photographs are permitted.
In addition, according to imam Ibn Hajar al-Haytami, even permissible images prevent the Angels of Mercy from entering the premise, while imam al-Ramli is of the opinion that they don't. Both of these opinions are relied upon in the shafiʿi madhhab.
Allah knows best.
Answered by Shaykh Omar Mohsin