Fixed bug with only image insertion (without text)