Fixing error in image/text only layouts