added support for png or jpg image frames