Bug fix for setting lower and upper bound on ImageView