*fixed NullPointerException *fixed StackOverFlowError by ignoring very small images and moving to while loop instead of recursion
*fixed NullPointerException *fixed StackOverFlowError by ignoring very small images and moving to while loop instead of recursion