Image dimension test