IP : handle different images sizes exception