constants replaced and bug with opening in gallery now fixed
now it works nice with minimum operations with loader but it doesnt work with rotations
it works on real device in every ways