Use `def-restricted-routes` macro
Added s3 image upload