Fix obtaining image method
Delete log file