made image size decidable by 2