faster way for picture handling