Add WebP support
Break out folder functions into separate file