Take an outside function to get image