Added more code for retrieving pictures for buttons. Need to make work on all OS's