Fixed image read problem, got rid of console logs