Fixed image onclick handler