Improves search of EI (end of inlined image)
Handle annotations with no resources.
Removes AES padding
Merge pull request #3374 from yurydelendik/ei-search

Improves search of EI (end of inlined image)
Merge pull request #3378 from yurydelendik/aes-padding

Removes AES padding
Merge pull request #3393 from brendandahl/no-resources

Handle annotations with no resources.