initial memory limit implementation for request body and file source; freeing limit on image overwrite