Modify method to create buffered image.
Review and clean.
Do not keep reference to images when closing.
Add code and review discard methods.