the strict enforcement of that rule is new. there are tons of medieval poetry and paintings made by otherwise devout muslims showing images (images of humans now another thing forbidden only recently) of themselves drinking a heck of a lot of wine (and lusting after beautiful boys...also recently forbidden)