$threshold = (int) apply_filters( 'big_image_size_threshold', 10000, $imagesize, $file, $attachment_id );