fixed the issue with the private method for image