Solving Gallery screenshot issue