Fixed Undefined property: jem_venues::$curimage
Refactored some code