Allow warnings on tests
Added forgotten free + messages on errors
Store events in job structure
Wait for individual job instead of waiting all queues to process
Adding cl image format in image struct
Adding png support
Adding tests for png images
Some reformatting