improved creating process of rasterButtons

added arrayList to simplify the method