Check if there is an image layout while getting css class.