hack for setImageResource