Fixed #4 Fatal error on return types other than image ID