Refactor output format
Refactor resizeImage options
correct examples to use type from blob
Remove convertToBlob and use the file object instead
Fix scope bug in for loop