Added q_image to the main class. Changed require_once to include for php performance