unified interface for local or s3 assets with resize