Made camera work as intended
Made camera work as intended, test added for debugging