revised imgBlock class