fix shrinking image