Resize image only if it is bigger then specified size