Changed the image findById method to take an id as an input.