image crash fix