Implemented image export functionality