moved the getRawImage method from the app to the utils and refactored methods in services accordingly