Trying to solve image problem