Fix error in handling non-bios images as bios images

Just added size check