Implemented Reuse

Implemented reuse in default library
Added ImageFormat to metadata
Added fallback in libjpeg for decoding to default api