fixed GUI blink, added option for image size limitation, changed buttons states