Fix images expanding. Second version