Solved warnings in images controller