Updated sendfile for gallery