This should be handled by the context's draw buffer management.
Attach a file by drag & drop or click to upload