Passing runMode, imageId and drawableId to run function.