debugging image hack