Fixed number check on image resize