CGImageRef should be released to avoid memory leak

Signed-off-by: Daniel Garcia <fillito@gmail.com>