Now writing JSON objects to database as wanted, but thumbnails are undefined at the moment. Could be issue with selector, attribute or way event fires. Do some diffs between working code blocks