add image resources for buttons
protect array against out of index references