made image snapshop more stable